# import requests
#
# url = 'https://api.weixin.qq.com/cgi-bin/token'
# data = {
#     'grant_type': 'client_credential',
#     'appid': 'wx3463133437828494',
#     'secret': '83342227991042320879142'
# }
# response = requests.get(url, params=data)
# print(response.content.decode('utf-8'))
import json

expect=[1, 1, 1, 1, 1, '{"errcode":"0","errmsg":"ok"}', 1, 1, 1, 1]
ex=json.loads(expect[5])
print(ex)

print(ex['errcode'])